<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "groupActivity");
%>
<style type="text/css">
.area {
	margin: 0px;
	padding: 0;
	border: 0px;
	text: center;
}
</style>
<div class="table-responsive">

	<t:form id="formSchedule" commandName="schedule"
		action="/admin/groupActivity/schedule/save" ajaxpost="true" method="post">
		<div>
			<t:hidden path="id" />
		</div>
		<table id="schedule"
			class="cntable table table-bordered dataTable table-schedule">
			<thead>
				<tr>
					<th style="width: 50px">周</th>
					<th style="”width: 100px"">时间节点</th>
					<th></th>
				</tr>
			</thead>
			<tbody>
				<c:forEach var="scheduleItem" items="${scheduleItems}"
					varStatus="status">

					<tr>
						<td>${status.index+1}</td>
						<td><fmt:formatDate value="${scheduleItem.weekDate}"
								pattern="yyyy/MM/dd" /></td>
						<td style="padding: 0px 0px"><t:textarea
								path="${scheduleItem.week}" />
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</t:form>
	<div>
		<t:button style="float:right;margin:8px;" icon="icon-floppy-disk" onclick="saveData()"
			cssClass="btn-info" csize="sm">保存</t:button>
	</div>
</div>

<script type="text/javascript">
	function saveData() {
		$("#formSchedule").submit();
	}
</script>